Caption = " Built-in Browser (Search for files remotely) "
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 3195
Left = 120
TabIndex = 36
Top = 3960
Width = 8055
Begin VB.ComboBox cmbdblclick
Height = 315
ItemData = "frmclient.frx":08CA
Left = 6400
List = "frmclient.frx":08D7
Style = 2 'Dropdown List
TabIndex = 30
Top = 600
Width = 1455
End
Begin VB.ComboBox cmbFiletype
Height = 315
ItemData = "frmclient.frx":08F1
Left = 6400
List = "frmclient.frx":090D
TabIndex = 31
Text = "*.*"
Top = 1320
Width = 1455
End
Begin VB.TextBox txtselfile
Height = 285
Left = 1320
TabIndex = 24
Top = 2660
Width = 1995
End
Begin VB.ListBox lstfiles
Height = 2205
Left = 120
TabIndex = 26
Top = 360
Width = 6135
End
Begin VB.Label Label6
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Browse for:"
Height = 255
Left = 6360
TabIndex = 42
Top = 1080
Width = 1515
End
Begin VB.Label Label3
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Double-click Action:"
Height = 255
Left = 6360
TabIndex = 41
Top = 360
Width = 1515
End
Begin VB.Label Label5
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "Remote Path:"
Height = 255
Left = 120
TabIndex = 40
Top = 2700
Width = 1095
End
End
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 1
Left = 5040
Top = 1080
End
Begin VB.CommandButton cmdActions
Caption = "First Track"
Height = 375
Index = 9
Left = 240
TabIndex = 9
Top = 2955
Width = 1335
End
Begin VB.CommandButton cmdActions
Caption = "Last Track"
Height = 375
Index = 10
Left = 3840
TabIndex = 15
ToolTipText = "Last Track"
Top = 3360
Width = 1335
End
Begin VB.CommandButton cmdActions
Caption = "Clear Remote Winamp Playlist"
Height = 375
Index = 7
Left = 5520
TabIndex = 19
Top = 1605
Width = 2535
End
Begin VB.Timer Timer2
Interval = 133
Left = 5040
Top = 1560
End
Begin VB.CommandButton Command9
Caption = "Minimise Remote Winamp"
Height = 375
Left = 5520
TabIndex = 21
Top = 2640
Width = 2535
End
Begin VB.CommandButton Command10
Caption = "Restore Remote Winamp"
Height = 375
Left = 5520
TabIndex = 22
Top = 3045
Width = 2535
End
Begin VB.CommandButton cmdActions
Caption = "Remote Winamp Visualisation"
Height = 375
Index = 8
Left = 5520
TabIndex = 20
Top = 2010
Width = 2535
End
Begin VB.CommandButton cmdActions
Caption = "Shuffle"
Height = 375
Index = 6
Left = 240
TabIndex = 4
Top = 1920
Width = 1215
End
Begin VB.CommandButton cmdActions
Caption = "Repeat"
Height = 375
Index = 5
Left = 240
TabIndex = 5
Top = 2325
Width = 1215
End
Begin VB.CommandButton Command8
Caption = "Center the Balance"
Height = 785
Left = 3960
TabIndex = 8
Top = 1920
Width = 1215
End
Begin VB.Frame Frame2
Caption = " Configure Remote Connection "
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1515
Left = 120
TabIndex = 35
Top = 120
Width = 5175
Begin VB.TextBox txtIP
Height = 285
Left = 1080
TabIndex = 0
Text = "127.0.0.1"
Top = 320
Width = 1935
End
Begin VB.Label Label4
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "Server IP:"
Height = 255
Left = 120
TabIndex = 39
Top = 360
Width = 855
End
End
Begin VB.PictureBox pictray
Height = 315
Left = 4560
ScaleHeight = 255
ScaleWidth = 435
TabIndex = 34
Top = 1080
Visible = 0 'False
Width = 495
End
Begin MSWinsockLib.Winsock Winsock1
Left = 5040
Top = 2040
_ExtentX = 741
_ExtentY = 741
_Version = 393216
End
Begin ComctlLib.Slider sldBal
Height = 255
Left = 3000
TabIndex = 7
Top = 2280
Width = 795
_ExtentX = 1402
_ExtentY = 450
_Version = 327682
LargeChange = 10
Max = 255
SelStart = 127
TickStyle = 3
Value = 127
End
Begin VB.Label Label2
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Balance"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00946934&
Height = 255
Left = 3000
TabIndex = 38
Top = 2040
Width = 795
End
Begin VB.Label Label1
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Volume"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000040C0&
Height = 210
Left = 1650
TabIndex = 37
Top = 2040
Width = 1095
End
End
Attribute VB_Name = "frmclient"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim winamppath As String
Dim PlNum As Long, PlTot As Long, songtime As Long, SongName As String
Private Function RemoveParent(ByVal File As String) As String
Dim t As Long
If Right(File, 1) = "\" Then File = Mid(File, 1, Len(File) - 1)
For t = Len(File) To 1 Step -1
If Mid(File, t, 1) = "\" Then
RemoveParent = Mid(File, t + 1)
Exit Function
End If
Next t
End Function
Private Function RemoveFileName(ByVal File As String) As String
Dim t As Long
If Right(File, 1) = "\" Then File = Mid(File, 1, Len(File) - 1)
For t = Len(File) To 1 Step -1
If Mid(File, t, 1) = "\" Then
RemoveFileName = Left(File, t)
Exit Function
End If
Next t
End Function
Private Sub cmdActions_Click(Index As Integer)
Select Case Index
Case 0
SendData "PREV"
Case 1
SendData "NEXT"
Case 2
SendData "PLAY"
Case 3
SendData "HALT"
Case 4
SendData "STOP"
Case 5
SendData "REPE"
Case 6
SendData "SHUF"
Case 7
SendData "CLER"
Case 8
SendData "VISA"
Case 9
SendData "GBEG"
Case 10
SendData "GEND"
End Select
End Sub
Private Sub cmdaddfile_Click()
SendData "AFLE" & txtselfile
End Sub
Private Sub cmdCloseRW_Click()
SendData "CLOS"
Timer2.Enabled = False
Me.Caption = "Status: Disconnected"
'End
End Sub
Private Sub cmdDownload_Click()
frmMain.Show
frmMain.txtfilename = lstfiles.Text
SendData "REQU" & txtselfile
End Sub
Private Sub cmdfind_Click()
frmfindfiles.FillinFields txtselfile
'frmfindfiles.Visible = True
frmfindfiles.Show , Me
End Sub
Private Sub cmdIPScan_Click()
frmIpScanner.Show , Me
End Sub
Private Sub cmdPauseTrans_Click()
If Timer2.Enabled = True Then
Timer2.Enabled = False
cmdPauseTrans.Caption = "Resume Tansmitting Signals without Disconnection"
Else
Timer2.Enabled = True
cmdPauseTrans.Caption = "Pause Tansmitting Signals without Disconnection"
End If
End Sub
Private Sub cmdshowPlaylist_Click()
SendData "GPLS"
'frmplaylist.Visible = True
frmplaylist.Show , Me
End Sub
Private Sub cmdTerminateCL_Click()
Unload Me
End Sub
Private Sub Command10_Click()
SendData "RESW"
End Sub
Private Sub cmdReplace_Click()
SendData "LFLE" & txtselfile
End Sub
Private Sub Command3_Click()
Dim X As String
X = InputBox("Modify winamp's path in the server-side?" & vbCrLf & "Press the cancel button if winamp is already working!" & vbCrLf & "Setting the wrong path may cause the server-computer to crash!" & vbCrLf & "" & vbCrLf & "(Use the built-in browser to find the winamp.exe file)", "Modify Server-Side Winamp Path", winamppath)
If X = "" Then Exit Sub
winamppath = X
SendData "WAMP" & winamppath
End Sub
Private Sub Command4_Click()
SendData "CLSW"
End Sub
Private Sub cmdBrowse_Click()
If Right(txtselfile, 1) <> "\" Then
MsgBox "Add a \ behind the path you entered!", vbCritical, "Element missing!"